package com.wpf.test01;

import java.io.IOException;
import java.util.Random;

public class demo01 {
    public static void main(String[] args) throws IOException {
        System.out.println(Math.abs(-12));
        System.out.println(Math.abs(15));
        System.out.println(Math.abs(-19.5));

        System.out.println(Math.ceil(4.0000000001));
        System.out.println(Math.ceil(-5.6));

        System.out.println(Math.floor(-3.5));

        System.out.println(Math.round(4.6));
        System.out.println(Math.max(10,12));
        System.out.println(Math.min(22,-123));
//        System.exit(-1);
//        System.exit(0);
        long time = System.currentTimeMillis();
        System.out.println(time);
        System.out.println(time / 1000 /60/60/24/12);
        System.out.println(Math.pow(2,10));
        System.out.println(Math.random() * 1000);

        Runtime r = Runtime.getRuntime();
        System.out.println(r);
//        r.exit(0);
        System.out.println(r.availableProcessors());
        System.out.println(r.totalMemory()/1024/1024);
        System.out.println(r.freeMemory()/1024/1024);


    }
}
